cucDefine(['common'], function(common){
    let {loadStyle, commonInit, commonVar} = common;
    class TitleJH2 extends HTMLElement {
        constructor() {
            super();
            commonInit(this);
            let shadow = this.attachShadow({mode: 'open'});
            loadStyle(shadow, commonVar.rootPath + "/assets/component/title/title.css");
            let head2 = document.createElement("h2");
            head2.className = "jh-title2";
            head2.innerText = this.innerHTML;
            shadow.appendChild(head2);
            // this.onMounted();
        }
    }
    return TitleJH2;
});